/* 博客详情页特有样式 */
.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 32px 60px;
}

/* 文章标题区 */
.blog-header {
    margin-bottom: 40px;
}

.blog-title h1 {
    font-family: "Impact", "Arial Black", sans-serif;
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #f1f1f1;
    letter-spacing: 0.5px;
}

.blog-meta-detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.author-info {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 16px;
    border: 2px solid rgba(108, 92, 231, 0.3);
}

.author-name {
    font-weight: 600;
    font-size: 18px;
    color: #00cec9;
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: #b2bec3;
}

.publish-info {
    display: flex;
    gap: 20px;
    color: #b2bec3;
    font-size: 14px;
}

.publish-info i {
    margin-right: 6px;
    color: #6c5ce7;
}

.blog-cover {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
}

.blog-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-cover:hover img {
    transform: scale(1.02);
}

/* 文章内容区 */
.blog-content {
    font-size: 18px;
    line-height: 1.8;
    color: #e2e2e2;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #00cec9;
    position: relative;
    padding-bottom: 12px;
}

.content-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: #ff7675;
}

.content-section p {
    margin-bottom: 24px;
    text-align: justify;
}

.content-image {
    margin: 40px 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-caption {
    margin-top: 12px;
    font-size: 14px;
    color: #b2bec3;
    font-style: italic;
}

.quote-block {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
    border-left: 3px solid #6c5ce7;
    padding: 24px 32px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.quote-block p {
    font-size: 20px;
    font-style: italic;
    color: #f1f1f1;
    margin-bottom: 0;
}

.quote-author {
    margin-top: 12px;
    font-size: 16px;
    text-align: right;
    color: #b2bec3;
}

/* 文章标签区 */
.blog-tags-detail {
    margin: 40px 0;
    padding: 20px;
    background: rgba(24, 25, 31, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-tags-detail span {
    color: #b2bec3;
    margin-right: 12px;
}

/* 作者介绍区 */
.author-profile {
    margin: 60px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(108, 92, 231, 0.3);
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #f1f1f1;
}

.profile-info p {
    margin-bottom: 20px;
    color: #b2bec3;
}

.follow-author {
    display: inline-block;
    background: linear-gradient(45deg, #6c5ce7, #00cec9);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.follow-author:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

/* 相关推荐区 */
.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #f1f1f1;
}

.related-grid {
    display: flex;
    gap: 20px;
}

.related-card {
    flex: 1;
    background: rgba(24, 25, 31, 0.6);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-card h4 {
    padding: 16px;
    font-size: 16px;
}

.related-card a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card a:hover {
    color: #00cec9;
}

/* 评论区 */
.comment-section {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-section h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #f1f1f1;
}

.comment-input textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: rgba(15, 16, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f1f1f1;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 16px;
}

.submit-comment {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-comment:hover {
    background: #5a49d1;
    transform: translateY(-2px);
}

.comments-list {
    margin-top: 40px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.commentor-name {
    font-weight: 600;
    color: #00cec9;
}

.comment-time {
    font-size: 14px;
    color: #b2bec3;
}

.comment-content p {
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.like-comment, .reply-comment {
    background: none;
    border: none;
    color: #b2bec3;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.like-comment:hover, .reply-comment:hover {
    color: #00cec9;
}

.load-more-comments {
    margin-top: 30px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: #6c5ce7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-comments:hover {
    background: rgba(108, 92, 231, 0.1);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .blog-title h1 {
        font-size: 32px;
    }

    .blog-meta-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .related-grid {
        flex-direction: column;
    }

    .related-card img {
        height: 120px;
    }

    .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}